home *** CD-ROM | disk | FTP | other *** search
/ Hottest 6 / Hottest 6 (1996)(PDSoft)[!].iso / c / ppmore.doc / ppmore.doc
Text File  |  1978-11-24  |  15KB  |  337 lines

  1.  
  2.  
  3.                            PPMore 1.71 User Manual
  4.  
  5.                                 March 4, 1991
  6.  
  7.  
  8.  
  9. Preface
  10. =======
  11.  
  12.      This program is freeware, this means that you can copy it freely as long
  13. as you don't ask any more money for it than a nominal fee for copying.  If
  14. you want to distribute this program you should keep this document with it.
  15. This program cannot be used for commercial purposes without written permission
  16. from the author.
  17.      If you have suggestions or remarks about this program, or if you find
  18. any bugs, please let me know.
  19.  
  20.      Write to the following address:
  21.  
  22.                                 Nico François
  23.                                 Corbielaan 13
  24.                                 B-3060 Bertem
  25.                                 BELGIUM
  26.  
  27.  
  28. Contents
  29. ========
  30.  
  31. 1. An introduction
  32.  
  33. 2. Usage
  34.  
  35. 3. Control
  36.  
  37. 4. Using PPMore from other programs
  38.  
  39.  
  40. 1. An introduction
  41. ==================
  42.  
  43.      This program was written to complement one of my other utilities,
  44. PowerPacker (a command and data cruncher).  It is used to read normal ascii
  45. text files or text files crunched with PowerPacker.  The program itself is
  46. about 10K long and when you know you save about 60% when you crunch a text
  47. file, you can see that this could save a lot of space on your disks.
  48.      PPMore was written as a more replacement (as you could have guessed :-),
  49. so I tried to keep the keyboard commands the same as well as adding some new.
  50. There are two main differences between PPMore and More, PPMore uses gadgets
  51. and it always loads the complete file in memory (More only loads part of the
  52. file and will load the rest when needed).  If you can live with these
  53. differences, you can replace More with PPMore anywhere you want.
  54.      If you haven't got PowerPacker you are of course missing one of the main
  55. features of this program.  PowerPacker is available as shareware (up to
  56. version 2.3b) or as a commercial program (from version 3.0a).  Order a copy 
  57. from your local UGA distributor or directly from  UGA, P.O.Box 881, 3700 AW 
  58. Zeist, The Netherlands. The commercial version offers several enhancements 
  59. like 40 to 50 times faster crunching and overlay crunching.
  60.  
  61.  
  62. 2. Usage
  63. ========
  64.  
  65.      PPMore can be used in four different ways.
  66.  
  67. - First of all via the CLI:
  68.  
  69.      If you enter PPMore without arguments you will get a usage template.
  70. You use PPMore like this:
  71.  
  72.      PPMore [<options>] [<file|dir>]
  73.  
  74.      The program will then load the ascii file and display it.  If the file
  75. was crunched using PowerPacker 2.0 or higher PPMore will first decrunch it
  76. for you.  If the file was encrypted you will be prompted for the password.
  77.      The options are explained in section 4.
  78.      PPMore can be made resident so it doesn't have to be loaded every time
  79. you use it, use the ARP ARes command or the c: Resident command for this.
  80. You can't make PPMore resident when it is crunched !!  The file is supplied
  81. as an uncrunched command file with the pure bit set.
  82.      If you enter PPMore without options, you will be presented with either a
  83. file prompt or a filerequester (if arp.library or asl.library is available).
  84. Entering PPMore with a directory instead of a file as an argument will also
  85. get you a requester, but it will be positioned in the directory you specified.
  86.      Enter 'PPMore ?' for a little usage message.
  87.  
  88. - Via the WorkBench:
  89.  
  90.      There are three different ways of using PPMore via the workbench: you
  91. can set the default tool of the (crunched) text file to 'PPMore', you can
  92. single click the PPMore icon and then double click the text file icon or you
  93. can double-click the PPMore icon and enter the filename in the string gadget
  94. (or the ARP filerequester) you will be presented with.
  95.      You set the default tool by single clicking the icon of the text file
  96. and selecting 'Info' from the workbench menu.  You will get a window with
  97. several gadgets in it, click in the string gadget where it says 'Default
  98. tool' and enter ':ppmore'.  PPMore should be in the root directory of your
  99. disk for this to work, if e.g. it's in the system directory you should enter
  100. ':system/ppmore'.  Last of all select the 'Save' gadget.
  101.  
  102. NOTE: - PPMore will add '.pp' to the filename when the file wasn't found.
  103.         This is very useful in the WorkBench enviroment: you can make an
  104.         icon for 'text.doc' but name the file 'text.doc.pp'.  Now the
  105.         WorkBench will show an icon with 'text.doc' as name, but if you
  106.         doubleclick it 'text.doc.pp' will be displayed.  (As long as there
  107.         is no 'text.doc' file in the directory !)
  108.       - Once you are in PPMore press 'L' to load a new file, this is
  109.         especially useful if the arp.library is available.
  110.  
  111.  
  112. 3. Control
  113. ==========
  114.  
  115.      PPMore can be controlled by keyboard or by intuition gadgets.  To get a
  116. summary of the keyboard commands press <HELP>, the function of the gadgets
  117. shouldn't be hard to understand.
  118.      A few notes on printing:
  119.  
  120. - The printer.device has to be in the devs: directory for PPMore to be able
  121.   to print, you should also have a correct system-configuration for your
  122.   printer.
  123.  
  124. - You can continue to read the text when PPMore is printing (this IS a
  125.   multitasking computer ! :-), you can't quit when printing is still in
  126.   progress !
  127.  
  128.  
  129. 4. Using PPMore from other programs
  130. ===================================
  131.  
  132.      If you are not a programmer you can skip this section.
  133.  
  134.      PPMore has two power options to make it possible to use it from other
  135. programs.  This way you don't have to include a text displayer in your
  136. programs, you just execute PPMore with one (or all) of the following options:
  137.  
  138.      -@mem,len,flags[,name]
  139.  
  140.        If you specify this option PPMore will not load a file but instead it
  141.      will display a chunk of memory.  You specify the memory addres and
  142.      length in the command line as well as some flags.  The current version
  143.      only has one flag: PPMORE_FREEMEM = bit 0 of the flag-word = 0x1.
  144.        When this flag is set PPMore will free the memory after it has
  145.      finished, if it isn't set PPMore will just exit and leave the memory
  146.      alone.  This way your program can start PPMore with the PPMORE_FREEMEM
  147.      flag set and exit before PPMore has ended.  PPMore will then free the
  148.      memory instead of your program.
  149.           The address, length and flags must be presented as HEX longwords
  150.      seperated by a comma.  These options can be followed by another comma
  151.      and a string to give the memory chunk a name, if this string is omited
  152.      PPMore will use the name 'memory'.  This string ends with the end of the
  153.      command line so it can contain spaces.
  154.  
  155.      -Sscreen or -S*
  156.  
  157.        With this option you can use PPMore on another screen.  You must
  158.      provide a screen address in HEX.  PPMore will the open the main window
  159.      on this screen.  If you specify a '*' instead of a screen address the
  160.      frontmost screen will be used.
  161.  
  162.      Examples:
  163.  
  164.        o  PPMore -@1A000,1D4E,0,my chunk
  165.  
  166.             PPMore will open a window 'Listing of my chunk', start
  167.           displaying at address 0x1A000 and stop at address 0x1BD4E.  The
  168.           memory will not be freed after PPMore exits.
  169.  
  170.        o  PPMore -Sc2d8a0 -@1A000,1D4E,1,my chunk
  171.  
  172.             Same as previous but now PPMore will free the memory chunk and
  173.           open the main window on the custom screen with the screen structure
  174.           on address 0xc2d8a0.
  175.  
  176.        o  PPMore -S* myfile
  177.  
  178.             Load and display the file 'myfile' and open window on the front
  179.           screen.
  180.  
  181. NOTE: - The options are case sensitive.
  182.       - The @ option must always be the last option on the command line.
  183.       - If you open PPMore on another screen PPMore will not check if the
  184.         screen closes !!  PPMore should always finish before this screen is
  185.         closed !
  186.       - I advise you to use the ARP 1.3 SyncRun and/or ASyncRun instead of
  187.         the AmigaDOS Execute function to execute PPMore from your programs
  188.         because the ARP functions also work when your program has been
  189.         started from WorkBench.  I suppose Kickstart 2.0 will offer some
  190.         better ways of executing programs.
  191.       - Watch out when using these options, it is very easy to crash the Amiga
  192.         if you don't know what you are doing !!!
  193.  
  194.  
  195.                       As always, I hope you find this program useful !
  196.  
  197.  
  198.                               PROGRAM HISTORY:
  199.  
  200. *****************************************************************************
  201. VERSION 1.0
  202.  
  203.      First release.
  204.  
  205. *****************************************************************************
  206. VERSION 1.1
  207.  
  208.      '.pp' suffix added to filename when file not found, very useful in
  209.        WorkBench enviroment.
  210.      PPMore now also loads encrypted files. (PowerPacker 2.3a or higher)
  211.  
  212. *****************************************************************************
  213. VERSION 1.2
  214.  
  215.      Rewritten some routines in assembler, results in a slightly faster
  216.        and smaller PPMore.
  217.      Keyboard input improved. Autorepeat of keys is ignored so you can keep
  218.        on pressing <page down> without typing it 20 times ahead !
  219.      Gadget input also improved, now handles repeat.
  220.      PPMore now prompts for a filename when double-clicked from WorkBench.
  221.  
  222. *****************************************************************************
  223. VERSION 1.3
  224.  
  225.      PPMore can now be made resident and is reentrant. (provided PPMore is
  226.        not crunched)
  227.      Improved error reporting, the main window only opens when PPMore is
  228.        going to display the file.
  229.      File is checked to see if it is an ASCII (text) file.
  230.      Two new power-options for use of PPMore from other programs:
  231.        -@ to display memory, -S to open window on a custom screen.
  232.      Fast assembler search function added.
  233.      Display position is displayed in titlebar (percentage).
  234.      Goto n% function added, replaced 'Refresh' gadget with this function.
  235.      Decrunching is 15% faster.
  236.      'Exit PPMore' only selected when button is released on top of gadget.
  237.      NO bugs removed because none where found. :-)
  238.      Only about 700 bytes larger than version 1.2 !
  239.  
  240. *****************************************************************************
  241. VERSION 1.4
  242.  
  243.      Bug fixed: PPMore 1.3 was not 100% pure, version 1.4 is !
  244.      ASCII check less strict (e.g. now allows files to contain a '©')
  245.      Another 300 bytes shorter than version 1.3 :-)
  246.  
  247. *****************************************************************************
  248. VERSION 1.5
  249.  
  250.      Bug fixed: search/goto window always opened on WorkBench screen.
  251.      Find previous also implemented.
  252.      Load a new file from within PPMore.
  253.      PPMore uses ARP file requester if arp.library is available.
  254.      Line count, as well as goto line.
  255.      Display position as percentage or line number.
  256.      Keypad = movement. (for PC-lovers, yek :-( )
  257.      PPMore now supports all keymaps !! I think especially german and french
  258.        Amiga users will be grateful for this.
  259.      Less than 600 bytes longer than version 1.4 (I love this :-D)
  260.  
  261. *****************************************************************************
  262. VERSION 1.5a
  263.  
  264.      Decrunching is 40% faster, this was a stupid mistake in 1.3 to 1.5,
  265.        I accidently used a slower instead of a faster decrunch routine :-(
  266.  
  267. *****************************************************************************
  268. VERSION 1.5b
  269.  
  270.      The Guru isn't with me lately, after using a slow decruncher in 1.3-1.5
  271.        by accident I now used a fast but faulty decruncher in 1.5a. It
  272.        sometimes didn't decrunch correctly, this has now been fixed. The
  273.        decruncher is still 40% faster than the 1.3-1.5 one. (and it's 2 bytes
  274.        shorter :^D )
  275.  
  276. *****************************************************************************
  277. VERSION 1.6
  278.  
  279.      Bugs in search fixed, didn't work correctly when used in large files and
  280.        sometimes didn't work at all :-(
  281.      Error output goes to the console when you start PPMore from the CLI,
  282.        WorkBench error reporting still in small window as before.
  283.      The ASCII check was made less strict (again).  I got a lot of complaints
  284.        from German users trying to display german documents, this should now
  285.        no longer be a problem.
  286.      If you deactivated the window when PPMore was loading PPMore would hang
  287.        until you resized its window, this has been fixed.  (Actually, I
  288.        worked around this problem, I think it was an Intuition bug :-)
  289.      PgUp, PgDn and the shifted arrow keys now do an immediate page up/down
  290.        without scrolling, SPACE and BS still scroll up/down.
  291.      Changed some things so PPMore runs better on Kickstart 2.0, next
  292.        version of PPMore will probably be a Kick 2.0 only version so I can
  293.        make use of all the new goodies of the new OS :^)
  294.  
  295. *****************************************************************************
  296. VERSION 1.6a
  297.  
  298.      Small update on special request.  Now possible to dump just the visible
  299.        page to the printer instead of the entire file.
  300.  
  301. *****************************************************************************
  302. VERSION 1.7
  303.  
  304.      No Kickstart 2.0 only version yet.  Changed some stuff so PPMore looks
  305.        best on Kick 2.0 and still runs on Kick 1.3.
  306.      Uses the all new powerpacker.library => shorter code :^D
  307.      Starting PPMore from the CLI with a directory as an argument now puts
  308.        up the requester positioned in that directory. Extremely useful once
  309.        you get used to this :^)
  310.      Small bug fixed in search routine, it sometimes missed an occurence.
  311.      PPMore filters out form-feeds and replaces them with <FORM FEED>.
  312.      If you are running Workbench 2.0 PPMore will use the asl.library
  313.        instead of the arp.library (for the filerequester).
  314.      Now fully supports system & screen fonts different than topaz 8.
  315.      Automatic refresh when you resize the window (only on Kick 2.0,
  316.        couldn't be done on 1.3 because of bug in console.device)
  317.      Used different technique to find workbench screen size, using
  318.        NormalDisplayRows no longer seemed to work on 2.0 ?!?!?
  319.  
  320.      REVISION 1.71
  321.      ~~~~~~~~~~~~~
  322.      Percentage background color is now white again on Kickstart 1.3.
  323.      Removed read in low memory when the close gadget was used.  Thanks to
  324.        the enforcer I was able to fix this VERY obscure bug :-)
  325.  
  326. *****************************************************************************
  327.  
  328. PPMore 1.71 written by Nico François (Yes, Nico is my first name :-)
  329.             thanks to Holger Lubitz for the many bug reports :^) and all the
  330.                                     useful suggestions.
  331.  
  332. (c) 1991 Nico François / PowerPeak
  333.  
  334.                                    //
  335.                        Thanks to \X/ Amiga for being the best computer ever !
  336.  
  337.